package mx.messaging.channels;

extern class PollingChannel extends mx.messaging.Channel {
	function new(?id : String, ?uri : String) : Void;
	function disablePolling() : Void;
	function enablePolling() : Void;
	function poll() : Void;
	private var internalPiggybackingEnabled : Bool;
	private var internalPollingEnabled : Bool;
	private function applyPollingSettings(settings : XML) : Void;
	private function getDefaultMessageResponder(agent : mx.messaging.MessageAgent, msg : mx.messaging.messages.IMessage) : mx.messaging.MessageResponder;
	private function getPollSyncMessageResponder(agent : mx.messaging.MessageAgent, msg : mx.messaging.messages.CommandMessage) : mx.messaging.MessageResponder;
	private function internalPoll(?event : flash.events.Event) : Void;
	private function startPolling() : Void;
	private function timerRequired() : Bool;
}
